.class public Lcn/sharesdk/evernote/h;
.super Lcn/sharesdk/framework/authorize/b;


# instance fields
.field private d:Lcn/sharesdk/framework/Platform;


# direct methods
.method public constructor <init>(Lcn/sharesdk/framework/authorize/g;)V
    .registers 3

    invoke-direct {p0, p1}, Lcn/sharesdk/framework/authorize/b;-><init>(Lcn/sharesdk/framework/authorize/g;)V

    invoke-virtual {p1}, Lcn/sharesdk/framework/authorize/g;->a()Lcn/sharesdk/framework/authorize/AuthorizeHelper;

    move-result-object v0

    invoke-interface {v0}, Lcn/sharesdk/framework/authorize/AuthorizeHelper;->getPlatform()Lcn/sharesdk/framework/Platform;

    move-result-object v0

    iput-object v0, p0, Lcn/sharesdk/evernote/h;->d:Lcn/sharesdk/framework/Platform;

    return-void
.end method

.method static synthetic a(Lcn/sharesdk/evernote/h;)Lcn/sharesdk/framework/Platform;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/h;->d:Lcn/sharesdk/framework/Platform;

    return-object v0
.end method

.method static synthetic b(Lcn/sharesdk/evernote/h;)Lcn/sharesdk/framework/authorize/AuthorizeListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/h;->c:Lcn/sharesdk/framework/authorize/AuthorizeListener;

    return-object v0
.end method

.method static synthetic c(Lcn/sharesdk/evernote/h;)Lcn/sharesdk/framework/authorize/AuthorizeListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/h;->c:Lcn/sharesdk/framework/authorize/AuthorizeListener;

    return-object v0
.end method

.method static synthetic d(Lcn/sharesdk/evernote/h;)Lcn/sharesdk/framework/authorize/AuthorizeListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/h;->c:Lcn/sharesdk/framework/authorize/AuthorizeListener;

    return-object v0
.end method

.method static synthetic e(Lcn/sharesdk/evernote/h;)Lcn/sharesdk/framework/authorize/AuthorizeListener;
    .registers 2

    iget-object v0, p0, Lcn/sharesdk/evernote/h;->c:Lcn/sharesdk/framework/authorize/AuthorizeListener;

    return-object v0
.end method


# virtual methods
.method protected a(Ljava/lang/String;)V
    .registers 4

    invoke-static {p1}, Lcn/sharesdk/framework/utils/R;->urlToBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v0

    const-string v1, "oauth_verifier"

    invoke-virtual {v0, v1}, Landroid/os/Bundle;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v1

    if-eqz v1, :cond_1a

    iget-object v0, p0, Lcn/sharesdk/evernote/h;->c:Lcn/sharesdk/framework/authorize/AuthorizeListener;

    if-eqz v0, :cond_19

    iget-object v0, p0, Lcn/sharesdk/evernote/h;->c:Lcn/sharesdk/framework/authorize/AuthorizeListener;

    invoke-interface {v0}, Lcn/sharesdk/framework/authorize/AuthorizeListener;->onCancel()V

    :cond_19
    :goto_19
    return-void

    :cond_1a
    new-instance v1, Lcn/sharesdk/evernote/i;

    invoke-direct {v1, p0, v0}, Lcn/sharesdk/evernote/i;-><init>(Lcn/sharesdk/evernote/h;Ljava/lang/String;)V

    invoke-virtual {v1}, Lcn/sharesdk/evernote/i;->start()V

    goto :goto_19
.end method

.method public shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z
    .registers 4

    iget-object v0, p0, Lcn/sharesdk/evernote/h;->b:Ljava/lang/String;

    invoke-virtual {p2, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_15

    invoke-virtual {p1}, Landroid/webkit/WebView;->stopLoading()V

    iget-object v0, p0, Lcn/sharesdk/evernote/h;->a:Lcn/sharesdk/framework/authorize/g;

    invoke-virtual {v0}, Lcn/sharesdk/framework/authorize/g;->finish()V

    invoke-virtual {p0, p2}, Lcn/sharesdk/evernote/h;->a(Ljava/lang/String;)V

    const/4 v0, 0x1

    :goto_14
    return v0

    :cond_15
    invoke-super {p0, p1, p2}, Lcn/sharesdk/framework/authorize/b;->shouldOverrideUrlLoading(Landroid/webkit/WebView;Ljava/lang/String;)Z

    move-result v0

    goto :goto_14
.end method
